using Cinemachine;
using FlowCanvas;
using FlowCanvas.Nodes;
using ImageEffects;
using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    public class AddLightElement : CallableActionNode<string,LightElement>
    {
        public override void Invoke(string controllerMark, LightElement lightElement)
        {
            LightController lightController = BlueprintUtils.GetLightController(controllerMark.Trim());
            if (lightController && lightElement)
            {
                lightController.AddLightElement(lightElement);
            }
        }
    }
}